import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import './permission';
import './filter';
// 错误日志上报
import './errorHandler';
import moment from 'moment';
import 'moment/locale/zh-cn';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import '@/styles/index.scss'; // global css

Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.prototype.$moment = moment;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
